package Day14.entend;

/**
 * @author HYHwtx
 * @version 1.0
 * @date 2022/2/21 17:31
 */
public class computer {
    private String CPU;
    private int neicun;
    private int yingpan;

    public computer() {
    }

    public computer(String CPU, int neicun, int yingpan) {
        this.CPU = CPU;
        this.neicun = neicun;
        this.yingpan = yingpan;
    }
    public String getDetails(){
        return ("CPU为:"+CPU+"，内存大小为："+neicun+"G"+" ，硬盘："+yingpan+"G");
    }

    public String getCPU() {
        return CPU;
    }

    public void setCPU(String CPU) {
        this.CPU = CPU;
    }

    public int getNeicun() {
        return neicun;
    }

    public void setNeicun(int neicun) {
        this.neicun = neicun;
    }

    public int getYingpan() {
        return yingpan;
    }

    public void setYingpan(int yingpan) {
        this.yingpan = yingpan;
    }
}
